package com.youxin.foundation.utils;

import java.io.IOException;
import java.util.Properties;

/**
 * 加载配置文件工具类
 * @author yingde.cao
 *
 */
public class ConfigurationUtils {
	
	/**
	 * 获取配置文件名称属性
	 * @param fileName 配置文件名称 如:"kafka.properties"
	 * @return Properties
	 */
	public static Properties getProperties(String fileName)
	{
		Properties properties = new Properties();
		try {			
			properties.load(ConfigurationUtils.class.getClassLoader().getResourceAsStream(fileName));
		} catch (IOException e) {			
		}
		return properties;
	}
}
